package com.gopay.scheduler.job;

import com.gopay.cps.service.FundcCustIncomeService;
import com.gopay.scheduler.GopayBaseJob;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.annotation.Resource;

/**
 * 商财通获取客户收益信息任务
 * FundbCustIncomeJob.java
 * @author liuyu
 * @2017年04月10日 上午11:00:00  www.gopay.com.cn Inc.All rights reserved.
 */
public class FundcCustIncomeJob extends GopayBaseJob {

    private Logger logger = LoggerFactory.getLogger(this.getClass());
    @Resource(name = "fundcCustIncomeService")
    private FundcCustIncomeService fundcCustIncomeService;

    @Override
    protected void doJobInternal() {
        try {
            logger.info("商财通获取客户收益信息开始！");
            fundcCustIncomeService.insertInfoFromRtBiz();
            logger.info("商财通获取客户收益信息结束！");
        } catch (Exception e) {
            logger.error("商财通获取客户收益信息出错！", e);
        }
    }


}
